package wx.demo.extensions;

import wx.demo.extensions.handlers.*;
import com.smartfoxserver.v2.core.SFSEventType;
import com.smartfoxserver.v2.extensions.SFSExtension;

public class DemoExtension extends SFSExtension {

	
	/************
	 * Override methods
	 ************/	
	@Override
	public void init() 
	{
		addRequestHandler("CreateAccount", CreateAccountHandler.class);

		addEventHandler(SFSEventType.USER_LOGIN, LoginEventHandler.class);
		addEventHandler(SFSEventType.USER_JOIN_ZONE, JoinZoneEventHandler.class);
		addEventHandler(SFSEventType.USER_JOIN_ROOM, JoinRoomEventHandler.class);
		
		//addEventHandler(SFSEventType.USER_DISCONNECT, LogoutEventHandler.class);
		//addEventHandler(SFSEventType.USER_LEAVE_ROOM, LogoutEventHandler.class);
		//addEventHandler(SFSEventType.USER_LOGOUT, LogoutEventHandler.class);

		trace("Demo extension initialized");	
	}
	
	@Override
	public void destroy()
	{
		super.destroy();
	}		
	
	/************
	 * Send response methods
	 ************/		
}
